package com.monochromebytes.mononet.stub;

import java.io.IOException;
import java.nio.ByteBuffer;

public interface Serializer {

    public Object deserialize(ByteBuffer data, Stub stub);

    public ByteBuffer serialize(Object object, Stub stub) throws IOException;

}
